Use ptrdiff_t for composition IDs.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Jul 2011 21:39:36 +0000 (14:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Jul 2011 21:39:36 +0000 (14:39 -0700)
commitd3475b4a03bdbfd9ddded49a978e3b904c1c51ec
treeae2be8f33803a1bc690b16f2962b3ef64ff185e0
parentd3cd78bf4c94fd5e9808d535e8651f0ae3ac0e1b
Use ptrdiff_t for composition IDs.

* character.c (lisp_string_width):
* composite.c (composition_table_size, n_compositions)
(get_composition_id, composition_gstring_from_id):
* dispextern.h (struct glyph_string.cmp_id, struct composition_it.id):
* xdisp.c (BUILD_COMPOSITE_GLYPH_STRING):
* window.c (Frecenter):
Use ptrdiff_t, not int, for composition IDs.
* composite.c (get_composition_id): Check for integer overflow.
* composite.h: Adjust prototypes to match the above changes.
src/ChangeLog
src/character.c
src/composite.c
src/composite.h
src/dispextern.h
src/window.c
src/xdisp.c